<template>
  <div>
      <table>
          <tr>
              <td>{{datas.id}}</td>
              <td>{{datas.name}}</td>
              <td>{{datas.sale}}</td>
              <td>{{datas.price}}</td>
              <td>{{datas.author_id}}</td>
          </tr>
      </table>
  </div>
</template>

<script>
export default {
    name:'book_detial',
    data(){
        return{
            'id':this.$route.query.id,
            datas:{}
        }
    },
    methods:{
        getdata(){
            this.axios.get('yt7/'+this.id).then(res=>{
                this.datas=res.data
            })
        }
    },
    mounted(){
        this.getdata()
    }

}
</script>

<style>

</style>